
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author rm67563
 */
@WebServlet (urlPatterns="/processarLogin")
public class ProcessaLogin extends HttpServlet {

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
       
        String usuario = req.getParameter("usuario");
        String pwd = req.getParameter("senha"); 
        
        PrintWriter writer = resp.getWriter();
        writer.println("ola "+ usuario);
        writer.println("neste momento a base não está disponivel");
        writer.println("volte mais tarde quando eu implementar esta função!");
        
    }
    
      
    
}
